package com.pap.product.discount.controller;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.pap.base.controller.BaseController;
import com.pap.product.agent.discount.IProductDiscountAgent;
import com.pap.product.discount.auto.entity.ProductDiscount;

@RestController
@RequestMapping("/v1/product/discount")
public class ProductDiscountController extends BaseController<ProductDiscount, IProductDiscountAgent> {

	private static Logger logger  =  LoggerFactory.getLogger(ProductDiscountController.class);
	
	@Resource(name = "productDiscountAgent")
	@Override
	public void setService(IProductDiscountAgent agent) {
		super.service = agent;
	}
}
